package com.hualan.service;

import com.hualan.domain.Teacher;
import com.hualan.domain.TeacherAndGoodAndLevel;
import com.hualan.mapper.TeacherMapper;
import com.hualan.service.impl.TeacherSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherSearchServiceImpl implements TeacherSearchService {

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<TeacherAndGoodAndLevel> findTeacherByName(String teacherName) {
        return teacherMapper.findSearchContentByTeacherName(teacherName);
    }

    @Override
    public List<Teacher> findAllTeacher() {
        return teacherMapper.findAlTeacher();
    }
}
